package com.yiran.model;

import java.util.ArrayList;

public class OrdersClass
{
    private int id;
    private String userName;
    private String ordersDatetime;
    private String ordersPrice;
    private String ordersAddr;
    private int orderFlag;
    
    private ArrayList list;
    
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getOrdersDatetime() {
		return ordersDatetime;
	}
	public void setOrdersDatetime(String ordersDatetime) {
		this.ordersDatetime = ordersDatetime;
	}
	public String getOrdersPrice() {
		return ordersPrice;
	}
	public void setOrdersPrice(String ordersPrice) {
		this.ordersPrice = ordersPrice;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}

	public ArrayList getItems(){
		return list;
	}
	

	public void add(OrdersDetailClass od){
		if(list==null)
			list = new ArrayList();
		list.add(od);
	}
	
	public void deleteItemById(int id){
		
	}
	
	private int totalPrice;
	
	public int getTotalMemberPrice(){
		return totalPrice;
	}
	
	public void setTotalMemberPrice(int p){
		totalPrice = p;
	}
	
	public void setAddr(String addr){
		ordersAddr = addr;
	}
	public String getOrdersAddr() {
		return ordersAddr;
	}
	public void setOrdersAddr(String ordersAddr) {
		this.ordersAddr = ordersAddr;
	}
	public int getOrderFlag() {
		return orderFlag;
	}
	public void setOrderFlag(int orderFlag) {
		this.orderFlag = orderFlag;
	}

}
